package com.decent.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 闲鱼问卷问题
 *
 * @author wangyx
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProductAnswer implements Serializable {
    private static final long serialVersionUID = -474425169357218887L;
    /**
     * 自增ID
     */
    private Long id;
    /**
     * 问卷ID
     */
    private Long questionId;
    /**
     * 展示名称
     */
    private String name;
    /**
     * 选择情况
     */
    private Boolean banned;
    /**
     * 提示信息(json)
     */
    private String tipsData;
    /**
     * 折损价格(减钱)
     */
    private BigDecimal reducePrice;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
    /**
     * 提示信息
     */
    private Tip tips;
    /**
     * 示例图key
     */
    private String picKey;

    /**
     * 问题说明
     *
     * @author wangyx
     */
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    @Data
    public static class Tip implements Serializable {
        private static final long serialVersionUID = 7477604817840914046L;
        /**
         * 图片地址
         */
        private String picUrl;
        /**
         * 说明
         */
        private String tipText;
    }

}
